import { handleActions } from 'redux-actions'
import { SET_USER_INFO } from '../types/user'

export default handleActions({
  [SET_USER_INFO] (state, action) {
  	console.log('action: ', action)
  	console.log('state: ', state)
    return {
      ...state,
      openid: action.openid
    }
  }
}, {
  openid: ''
})
